/**
* AutoSWF - Cody Cushing. March 26, 2009
* Copyright (c) 2009 Cody Cushing
* No use restrictions. Maintain this notice in all versions. 
**/

package com.autoswf.locator
{
	import com.autoswf.core.IChainLink;
	
	
	/**
	 * For implementing a resource Locator class.
	 */	
	public interface ILocator extends IChainLink
	{
		/** Registers a service instance to a class definition or interface. */
		function addService(service:Object, registerTo:Class):void
		
		/** Returns true if there is a service registered to the class reference. */
		function hasService(service:Class):Boolean
		
		/** Removes a service from the locators dictionary. */
		function removeService(registeredClass:Class):void
	}
}